<?php
class DATABASE implements INTDATABASE{
	function db_connect($host, $user, $pass, $dbase) {
		if (empty($pass))
			mysql_connect($host, $user) or die ("FALSE!");
		else 
			mysql_connect($host, $user, $pass) or die ("FALSE!");
		mysql_select_db($dbase);
	}
	//
	public function db_query($query) {
		return mysql_query($query);
	}
	//
	public function db_fetch_array($rs){
		return mysql_fetch_array($rs);
	}
	public function db_num_rows($rs){
		return mysql_num_rows($rs);
	}
	public function db_fetch_assoc($rs){
		return mysql_fetch_assoc($rs);
	}
	public function db_affected_rows(){
		return mysql_affected_rows();
	}
	public function db_real_escape_string($rs){
		return mysql_real_escape_string($rs);
	}
	public function db_insert_id(){
		return mysql_insert_id();
	}
}
?>
